package de.gameduell.net.src.message {
	import de.gameduell.net.src.body.IBody;
	import de.gameduell.net.src.header.IHeader;	

	/**
	 * @author GD
	 */
	public class MessageFactory {
		public static const V2:int = 2;
		
		public function createMessage(version:int,header:IHeader,body:IBody):IMessage {
			switch(version){
				case(V2): 	return new Message_V2(header, body);
				default: 	return null;
			}
		}
		
	}
}
